Skip to content

Fix Workers AI model reasoning input types - #7437

Open
KastanDay wants to merge 1 commit into
cloudflare:mainfrom
KastanDay:kastan/workers-ai-reasoning-types
Open

KastanDay wants to merge 1 commit into
cloudflare:mainfrom
KastanDay:kastan/workers-ai-reasoning-types

Conversation

@KastanDay

Copy link
Copy Markdown

Refresh Workers AI binding types to describe each model's reasoning efforts and whether thinking can be disabled. Previously, shared low | medium | high types rejected valid controls such as Gemma's none and GLM's max. The updated types include canonical efforts and accepted normalization aliases, while mandatory-reasoning models reject disabling thinking. Shared type defaults remain compatible for models without metadata.

Regenerated the reasoning declarations, added the missing GLM-5.3 binding entry, and preserved unrelated input fields and token limits. The accompanying documentation update explains canonical controls separately from aliases.

Validation: generated type snapshots and focused compile-time coverage for Chat Completions, Responses, aliases, invalid efforts, mandatory thinking, and unchanged options.

@KastanDay
KastanDay requested review from a team as code owners September 19, 2026 00:37
@KastanDay
KastanDay requested a review from cjol September 19, 2026 00:37
@github-actions

github-actions Bot commented Sep 19, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@KastanDay

KastanDay commented Sep 19, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@KastanDay

Copy link
Copy Markdown
Author

recheck

github-actions Bot added a commit that referenced this pull request Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant